#ifndef __CAM_H__
#define __CAM_H__
//摄像头初始化
int camera_init(char *devpath, unsigned int *width, unsigned int *height, unsigned int *size, unsigned int *ismjpeg);
//开始采集
int camera_start(int fd);
//从缓存区读取数据
int camera_dqbuf(int fd, void **buf, unsigned int *size, unsigned int *index);
//将读取的数据放回缓冲区
int camera_eqbuf(int fd, unsigned int index);
//停止采集
int camera_stop(int fd);
//摄像头退出
int camera_exit(int fd);

#endif
